//获取分页输入框里传来的页数,并根据页数，跳转到相应的页面
function jumpToPage(){
	var page = document.getElementById("textfield").value;
	if(getPage(page)){
		window.location.href='../../action/instanceAction.php?op=query&p='+page;
	}
}

//恢复活动
function renewActivity(id){
	if(window.confirm("确定恢复该活动吗？")){  
		window.location="../../action/instanceAction.php?op=renew&id="+id;
	} 
}

//取消活动
function cancelActivity(id){
	if(window.confirm("确定取消该活动吗？")){  
		window.location="../../action/instanceAction.php?op=cancel&id="+id;//后台更新处理  
	} 
}

//结束活动
function overActivity(id){
	if(window.confirm("请确认该活动的信息和参与活动的会员信息是否正确，在点击确定后无法再次编辑该活动！")){  
		window.location="../../action/instanceAction.php?op=over&id="+id;//后台更新处理  
	} 
}
//成员维护
function memberActivity(id){
	//window.location="instanceMemberList.php?tag=e";
	ret=window.showModalDialog("instanceMemberWindow.php",this,"dialogWidth:1024px;dialogHeight:768px;help:no;scrollbar:no;resizable:no;status:no");
	window.location.href="../../action/instanceAction.php?op=get&tag=e&id="+id;
}
